/**
 * -----------------------------------------------------------------
 * 适配器模式
 */

class Adaptee {
  specialRequest() {
    return '苹果插头'
  }
}

class Target {
  constructor() {
    this.adaptee = new Adaptee()
  }
  request() {
    let info = this.adaptee.specialRequest()
    alert(`${info} - 转换头 - 普通头`)
  }
}

let target = new Target()
target.request()